cmake_minimum_required (VERSION 2.8)

# macro for defining option, borrowed from sfml_set_option
macro(pong_set_option var default type docstring)
    if(NOT DEFINED ${var})
        set(${var} ${default})
    endif()
    set(${var} ${${var}} CACHE ${type} ${docstring} FORCE)
endmacro()

pong_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debug or Release)")

# project name
project(Pong)

# include the configuration file
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake)

# setup version numbers
set (Pong_VERSION_MAJOR 0)
set (Pong_VERSION_MINOR 0)
